<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * login.php
 * @author ranuandra
 *
 * 24 Apr 2012 10:04:49
 *
 * 
 */
if(!Auth_ORM::instance()->logged_in())
{
?>  
			<div class="well center">
	        	<a href="<?php echo URL::base() ?>home/login" class="btn btn-success btn-medium">
	        		<i class="icon-lock icon-white"></i> Login
	        	</a>
	        	<a href="<?php echo URL::base() ?>home/register" class="btn btn-warning btn-medium">
	        		<i class="icon-user icon-white"></i> Registrasi
	        	</a>
        	</div>

        	<!--
        	<?php 
        	echo Form::open(URL::base().'login', array('class' => 'form-horizontal'));
        	?>
            
                    <div class="control-group">
                    	<label class="control-label">Email</label>
                    	<div class="controls">
                    		<?php echo Form::input('username', '', array('class' => 'tips', 'title'=>'Silahkan masukan alamat email anda'))?>
                    	</div> 
                    </div> 
                    <div class="control-group">
                    	<label class="control-label">Password</label>
                    	<div class="controls">
                    		<?php echo Form::password('password', '', array())?>
                    	</div> 
                    </div> 
                    <div class="control-group">
                    	<label class="control-label">&nbsp</label>
                    	<div class="controls">
                    		<?php echo Form::input('capthca', '', array())?>
                    	</div> 
                    </div> 
                    <div class="control-group">
                    	<label class="control-label">&nbsp</label>
                    	<div class="controls">
                    	<?php 
                    	if(isset($captcha))
                    	{
                    		echo $captcha->render();
                    	}
                    	
                    	?>
                    	</div> 
                    </div> 
                    <div class="form-actions">
                    	<button type="submit" class="btn btn-primary">Save changes</button>
                    	<button class="btn">Cancel</button>
                    </div>



        
            <?php 
            echo Form::close();
            ?>
              -->

<?php 
}
?>

			<div class="well">
				<h2>Lowongan Terbaru</h2>
				<div id="scroll">
					<ul>
					<?php 
					foreach($datas as $data)
					{
					?>
					<li>
						<div>
							<?php echo date("d M Y", strtotime( $data->dateto ) ) ?> <a href="<?php echo URL::base()?>lowongan/detail/<?php echo $data->id?>"><?php echo $data->deskripsi?></a>
						</div>
					</li>
					<?php 
					}
					?>

					</ul>				
				</div>
			</div>